<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       
    </style>
</head>
<body>

    <div id="box">


    </div>

    
    <script src="./js/react.js"></script>
    <script src="./js/react-dom.js"></script>
    <script src="./js/babel.min.js"></script>

    <script type="text/babel">
        var arr=[
            <li>张三疯</li>,
            <li>张四疯</li>,
            <li>张五疯</li>
        ] 

        const bookData = ["大学","中庸","论语","四书"];
        const bookJSX = bookData.map(item=><li>{item}</li>)
        
        const book = (
            <div>
                <h2>人的信息:</h2>
                <ul>
                    {arr}
                </ul>
                <h2>书的信息:</h2>
                <ul>
                    {bookJSX}
                </ul>
                <ul>
                    {bookData.map(item=><li>{item}</li>)}
                </ul>                
            </div>
        )
        
        ReactDOM.render(book,document.getElementById("box"));

        
    </script>
</body>
</html>
